﻿using SMBCFamilyAssessment.Models;
using System;
using System.Collections.Generic;
using System.Data.Entity;
using System.Linq;
using System.Web;
using System.Web.Optimization;
using System.Web.Routing;
using System.Web.Security;
using System.Web.SessionState;

using SMBCFamilyAssessment.Logic;
namespace SMBCFamilyAssessment
{
    public class Global : HttpApplication
    {
        void Application_Start(object sender, EventArgs e)
        {
            // Code that runs on application startup
            RouteConfig.RegisterRoutes(RouteTable.Routes);
            BundleConfig.RegisterBundles(BundleTable.Bundles);
          

           
            //Database.SetInitializer<AssessmentContext> (new AssessmentDatabaseInitializer());
            //// Forces initialization of database.
            //using (var c = new AssessmentContext())
            //{
            //    c.Database.Initialize(true);
            //}
            // Create the administrator role and user.
         //RoleActions roleActions = new RoleActions(); 
         //   roleActions.createAdmin();





       

        
        
        
        }

    }
}